e2f20b7d0cc4e2ddc29fc542ac4297ca82a4b0fd,src/test/java/eu/euregjug/site/events/EventApiControllerTest.java,EventApiControllerTest,updateShouldShouldWork,#,270

Before Change


                .andExpect(jsonPath("$.speaker", equalTo(updateEntity.getSpeaker())))
                .andExpect(jsonPath("$.location", equalTo(updateEntity.getLocation())))
                .andExpect(jsonPath("$.type", equalTo("talk")))
                .andDo(document("api/events/update/updated",
                        preprocessRequest(prettyPrint()),
                        preprocessResponse(prettyPrint())
                ));
        
        verify(this.eventRepository).findOne(23);
        verify(this.eventRepository).findOne(42);

After Change


                .andExpect(jsonPath("$.location", equalTo(updateEntity.getLocation())))
                .andExpect(jsonPath("$.type", equalTo("talk")))
                .andExpect(jsonPath("$.status", equalTo("closed")))
                .andDo(document("api/events/update/updated",
                        preprocessRequest(prettyPrint()),
                        preprocessResponse(prettyPrint())
                ));
        
        verify(this.eventRepository).findOne(23);
        verify(this.eventRepository, times(2)).findOne(42);